new-item $profile -itemtype file -force
echo 'Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
$Env:Path += ";C:\Program Files\7-Zip;
C:\program1\caj2pdf;
C:\program1\mpv;
C:\program1\platform-tools;
C:\program1\bin;
C:\program1\aria2;
C:\program1\ffmpeg;
$HOME\Documents\code\windows\bin"
$env:GOPROXY = "https://goproxy.io,direct"
' > $PROFILE
# $passwd=Read-Host "Enter your password"
# $passwd2=Read-Host "Enter again"
# if ($passwd -eq $passwd2) {
#     echo "`$password=`"$passwd`"" >> $PROFILE
# }
echo 'set show-all-if-ambiguous on
# Color files by types
# Note that this may cause completion text blink in some terminals (e.g. xterm).
set colored-stats On
# Append char to indicate type
set visible-stats On
# Mark symlinked directories
set mark-symlinked-directories On
# Color the common prefix
set colored-completion-prefix On
# Color the common prefix in menu-complete
set menu-complete-display-prefix On
set completion-ignore-case on' > ~/.inputrc

# software config
mkdir ~/.config/mpv
echo 'hwdec=auto
save-position-on-quit
loop-playlist=inf' > ~/.config/mpv/mpv.conf
mkdir ~/.aria2
# cp ~\Documents\code\windows\software_backup\aria2_command.conf ~/.aria2/aria2.conf
echo 'async-dns=false
continue=true
allow-overwrite=true
min-split-size=1M
split=16
max-connection-per-server=16
user-agent=Chrome' > ~/.aria2/aria2.conf
mkdir ~/.pip
echo '[global]
index-url = https://mirrors.huaweicloud.com/repository/pypi/simple
trusted-host = mirrors.huaweicloud.com
timeout = 120' > ~/.pip/pip.conf

git config --global user.email "you@example.com"
git config --global user.name "Your Name"
git config --global core.quotepath false
mkdir ~/.config/git
echo '~$*' > ~/.config/git/ignore
mkdir $HOME\.ssh
cp $HOME\Documents\code\windows\id_ed25519 $HOME\.ssh\
ssh-keygen.exe -p
git remote remove origin
git remote add origin git@gitcode.com:a365021880/windows.git
git push --set-upstream origin master